document.getElementById("send").addEventListener("click", async function () { 
  const [tab] = await chrome.tabs.query({ active: true, currentWindow: true });

  chrome.runtime.sendMessage(
    {
      type: "popup_to_background",
      tabId: tab.id,
      text: "你好, content script"
    },
    (response) => { 
      document.getElementById("response").textContent = response?.status || "没有响应";
    }
  )
});